package com.ufgov.agcfs.baseData.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.ufgov.agcfs.baseData.dao.ReportTypeDao;
import com.ufgov.agcfs.baseData.entity.ReportType;

@Service
@Transactional(propagation = Propagation.REQUIRES_NEW)
public class ReportTypeService {
	@Autowired
	public ReportTypeDao reportTypeDao;
	
	public List<ReportType> findAll(){
		return reportTypeDao.findAllReportType();
	}
	
	public void updateBookType(ReportType reportType){
		reportTypeDao.updateReportType(reportType);
	}

}
